package com.bestvike.stone.core.threading.inherit;

import com.bestvike.stone.core.threading.holder.CopyThreadLocalsHolder;
import com.bestvike.stone.core.threading.holder.RawThreadLocalsHolder;

/**
 * Created by 许崇雷 on 2018-02-06.
 */
public abstract class InheritAction {
    private final CopyThreadLocalsHolder copyThreadLocalsHolder;

    public InheritAction() {
        this.copyThreadLocalsHolder = new CopyThreadLocalsHolder();
    }

    protected RawThreadLocalsHolder ready() {
        return new RawThreadLocalsHolder(this.copyThreadLocalsHolder);
    }
}
